﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Globalization;

namespace SAKS.ViewModels
{
    public class MessageBrief 
    {
        public Guid Id { get; set; }
        public string Subject { get; set; }
        public string Date { get; set; }
    }
    public class MessageReceivedBrief : MessageBrief
    {
        public string From { get; set; }
    }

    public class MessageSentBrief : MessageBrief
    {
        public string To { get; set; }
    }

    public class MessageForReadBase
    {
        [DisplayName("主题")]
        public string Subject { get; set; }
        [DisplayName("日期")]
        public string Date { get; set; }
        [DisplayName("内容")]
        public string Content { get; set; }
    }
    public class MessageReceivedForRead : MessageForReadBase
    {
        [DisplayName("来自")]
        public string From { get; set; }
    }
    public class MessageSentForRead : MessageForReadBase
    {
        [DisplayName("送至")]
        public string To { get; set; }
    }

    public class SendMessageModel
    {
        [DisplayName("主题")]
        [Required]
        public string Subject { get; set; }
        [DisplayName("内容")]
        public string Content { get; set; }
        [DisplayName("送至")]
        [Required]
        public string To { get; set; }
        [DisplayName("来自")]
        [Required]
        public string From { get; set; }
    }
}
